#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

#if !wxUSE_DOC_VIEW_ARCHITECTURE
#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h!
#endif

#include "wx/filename.h"
#include "wx/wfstream.h"
#include "wx/stdpaths.h"
#include "wx/filesys.h"
#include "wx/fs_arc.h"
#include "wx/fs_filter.h"

#include "MediaHouseApp.h"
#include "MediaHouseMainFrm.h"

CMediaHouseMainFrm * g_pMainFrm = NULL;

IMPLEMENT_APP(CMediaHouseApp)

CMediaHouseApp::CMediaHouseApp(void) {
}

bool CMediaHouseApp::OnInit(void) {
	//// Create the main g_pMainFrm window
	g_pMainFrm = new CMediaHouseMainFrm((wxFrame *) NULL,
			wxID_ANY, _("MediaHouse wxWidgets"), wxDefaultPosition, wxSize(500, 400),
			wxDEFAULT_FRAME_STYLE );

	//// Give it an icon (this is ignored in MDI mode: uses resources)
	//g_pMainFrm->SetIcon(wxICON(BOOK06));
	g_pMainFrm->Centre(wxBOTH);
	g_pMainFrm->Show(true);

	SetTopWindow(g_pMainFrm);

	g_pMainFrm->Maximize(true);

	g_pMainFrm->Init();

	return true;
}

int CMediaHouseApp::OnExit(void) {
	return 0;
}
